//=============================================================================
// SentinelPulse - Default weapon, fires link type projectiles.
//=============================================================================
class SentinelPulse extends SentinelWeapon;

var() material MuzzleFlashSkinRed;
var() material MuzzleFlashSkinBlue;
var material MuzzleFlashSkin;

var() class<Projectile> RedProjectileClass;
var() class<Projectile> BlueProjectileClass;

simulated function SetTeam()
{
	if(Sentinel!=none && !Sentinel.bIsInvasion)
	{
		if(TeamIndex == 0)
		{
			ProjectileClass = RedProjectileClass;
			MuzzleFlashSkin = MuzzleFlashSkinRed;
		}
		else
		{
			ProjectileClass = BlueProjectileClass;
			MuzzleFlashSkin = MuzzleFlashSkinBlue;
		}
	}

	if(MuzzleFlash != None)
		MuzzleFlash.Skins[0] = MuzzleFlashSkin;
}

function float MaxRange()
{
	return ProjectileClass.Default.Speed * ProjectileClass.Default.LifeSpan;
}

defaultproperties
{
     MuzzleFlashSkinRed=FinalBlend'TFMedia.Projectiles.SentinelMuzFlashRedFB'
     MuzzleFlashSkinBlue=FinalBlend'TFMedia.Projectiles.SentinelMuzFlashFB'
     MuzzleFlashSkin=FinalBlend'TFMedia.Projectiles.SentinelMuzFlashRedFB'
     RedProjectileClass=Class'taskforces.SentinelProjectileRed'
     BlueProjectileClass=Class'taskforces.SentinelProjectile'
     FireRate=0.800000
     FireSound=Sound'WeaponSounds.LinkGun.BLinkedFire'
     ProjectileClass=Class'taskforces.SentinelProjectileRed'
     ProjSpawnOffset=56.000000
     MuzzleFlashClass=Class'XEffects.LinkMuzFlashProj3rd'
     FlashOffset=(X=-12.000000)
     FlashScale=1.000000
     Loudness=1.000000
     MaxAmmo=1
     AmmoAmount=1
     AmmoCost=20
     UpgradeName="Pulse Cannon"
     Description="The standard weapon fitted to all Sentinels. It offers a good balance of power, speed and range. It generates its own power, giving it an effectively unlimited quantity of ammunition."
     ActivateSound=Sound'WeaponSounds.LinkGun.SwitchToLinkGun'
}
